<?php
declare(strict_types=1);

namespace app\common\model\delivery;

use app\common\model\base\BaseModel;
use app\common\model\User;

class ShopOrder extends BaseModel
{
    public function goods()
    {
        return $this->hasOne(ShopGoods::class,'id','goods_id');
    }

    public function User()
    {
        return $this->hasOne(User::class,'id','user_id')->field('id,nickname');
    }
}
